#include <mx/mx.h>

void octopus_mx_extern_cogl_get_modelview_matrix (CoglMatrix* modelview) {
	cogl_get_modelview_matrix (modelview);
}

void octopus_mx_extern_cogl_get_projection_matrix (CoglMatrix* projection) {
	cogl_get_projection_matrix (projection);
}

void octopus_mx_extern_cogl_matrix_init_identity (CoglMatrix* matrix) {
	cogl_matrix_init_identity (matrix);
}

float octopus_mx_extern_get_padding_top (MxWidget* widget) {
	MxPadding padding;
	mx_widget_get_padding (MX_WIDGET (widget), &padding);
	return padding.top;
}

float octopus_mx_extern_get_padding_bottom (MxWidget* widget) {
	MxPadding padding;
	mx_widget_get_padding (MX_WIDGET (widget), &padding);
	return padding.bottom;
}

float octopus_mx_extern_get_padding_left (MxWidget* widget) {
	MxPadding padding;
	mx_widget_get_padding (MX_WIDGET (widget), &padding);
	return padding.left;
}

float octopus_mx_extern_get_padding_right (MxWidget* widget) {
	MxPadding padding;
	mx_widget_get_padding (MX_WIDGET (widget), &padding);
	return padding.right;
}
